#coding: utf-8

from cocos2d        import CCPoint

import Singleton
from FakeProperty   import FakeProperty as property

from game.common    import *

class PositionHelper(Singleton.Singleton):
    def __init__(self):
        pass

    @staticmethod
    def getInstance():
        return Singleton.getInstance(PositionHelper)

    @property
    def ScreenC(self):
        return CCPoint(DEFAULT_GAME_WIDTH / 2,  DEFAULT_GAME_HEIGHT / 2)

    @property
    def ScreenL(self):
        return CCPoint(0,  DEFAULT_GAME_HEIGHT / 2)

    @property
    def ScreenT(self):
        return CCPoint(DEFAULT_GAME_WIDTH / 2,  DEFAULT_GAME_HEIGHT)

    @property
    def ScreenR(self):
        return CCPoint(DEFAULT_GAME_WIDTH,  DEFAULT_GAME_HEIGHT / 2)

    @property
    def ScreenB(self):
        return CCPoint(DEFAULT_GAME_WIDTH / 2,  0)

    @property
    def ScreenLT(self):
        return CCPoint(0,  DEFAULT_GAME_HEIGHT)

    @property
    def ScreenLB(self):
        return CCPoint(0,  0)

    @property
    def ScreenRT(self):
        return CCPoint(DEFAULT_GAME_WIDTH,  DEFAULT_GAME_HEIGHT)

    @property
    def ScreenRB(self):
        return CCPoint(DEFAULT_GAME_WIDTH,  0)

